import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as filters from "@/utils/filters"
import * as directives from "@/utils/directives"
import Vant from 'vant'
import 'vant/lib/index.css'

import '@/assets/css/reset.css'
import '@/assets/icon/iconfont.css'

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]) // 插入过滤器名和对应方法
})
Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key]) // 插入自定义指令名和对应方法
})
Vue.config.productionTip = false;
Vue.use(Vant);

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')

